function loginErp() {
    let username=$("#username").val();
    let password=$("#password").val();

    if (username.length==0){
        $("#username").focus();
        return;
    }
    if (password.length==0){
        $("#password").focus();
        return;
    }
    $.ajax({
        url:"/User/login",
        type:"post",
        data:{
            userAccount:username,
            userPassword:password,
        },
        dataType:"json",
        success:function (data) {
            window.location.href="/examples/index.html?love=1314";
        },
        error:function (er) {
            $("#msg").html("用户名或密码错误");
        }
    })

}